#include <ast/ast.h>

namespace ast {
  void NodeArrayConst::dot_string(std::string & str) {
    str = std::string("Array") + R"(\n)"
      + "number_list:";
    for(auto number : this->int_number_list) {
      str += std::to_string(number) + ",";
    }
    str.pop_back();
  }

  void NodeArrayConst::dot_accept(AstDot & ast_dot) {
    ast_dot.visit(*this);
  }

  void NodeArrayConst::accept(ir::Visitor & visitor) {
    visitor.visit(*this);
  }
}
